package org.lanqiao.webfm.dao;

import java.sql.SQLException;

import org.lanqiao.webfm.model.RightsRole;
import org.lanqiao.webfm.model.RightsRoleMapper;

import javacommon.base.BaseJdbcDao;
import javacommon.base.EntityDao;
import javacommon.ijdbc.RowMapper;
import javacommon.web.page.Page;
import javacommon.web.page.PageRequest;

public class RightsRoleDao extends BaseJdbcDao<RightsRole> implements EntityDao<RightsRole> {
	private static RightsRoleDao instance;
	private RightsRoleDao(){}
	public static RightsRoleDao getInstance(){
		if (instance==null) {
			instance=new RightsRoleDao();
		}
		return instance;
	}
	
	@Override
	public void save(RightsRole entity) throws SQLException {
	}
	@Override
	public void update(RightsRole entity) throws SQLException {
	}
	@Override
	public Page<RightsRole> findPage(PageRequest<RightsRole> pageRequest)
			throws SQLException {
		return null;
	}
	@Override
	public String getTableName() {
		return "cmn_rights_role";
	}
	@Override
	public Class getEntityClass() {
		// TODO Auto-generated method stub
		return RightsRole.class;
	}
	@Override
	public String getIdColumnName() {
		return "id";
	}
//	@Override
//	public RowMapper<RightsRole> getMapper() {
//		return new RightsRoleMapper();
//	}
	public void deleteByIds(String[] ids) throws SQLException {
	}
}
